home *** CD-ROM | disk | FTP | other *** search
/ HPAVC / HPAVC CD-ROM.iso / pc / SATAN11.ZIP / SRC / MISC / SYS_SOCK.C < prev    next >
Encoding:
C/C++ Source or Header  |  1995-04-04  |  483 b   |  19 lines

  1.  /*
  2.   * Many PERL installations have no sys/socket.ph file, and with many
  3.   * installations, the sys/*.ph files are broken. This is a bizarre
  4.   * workaround: a C program to bootstrap a PERL application.
  5.   * 
  6.   * Author: Wietse Venema.
  7.   */
  8. #include <sys/types.h>
  9. #include <sys/socket.h>
  10.  
  11. int     main(argc, argv)
  12. int     argc;
  13. char  **argv;
  14. {
  15.     printf("sub AF_INET { %d; }\n", AF_INET);
  16.     printf("sub SOCK_STREAM { %d; }\n", SOCK_STREAM);
  17.     printf("1;\n");
  18. }
  19.